package com.example.blogapi.vo;

public enum ErrorCode {
    PARAMS_ERROR(10001,"参数错误"),
    ACCOUNT_PWD_NOT_EXIST(10002,"用户名或密码不存在"),
    TOKEN_ERROR(10003,"token不合法"),
    ACCOUNT_EXIST(10004,"该用户以存在"),
    NO_LOGIN(10005,"用户未登录");



    private int code;
    private String mes;
    ErrorCode(int code,String mes) {
        this.code = code;
        this.mes = mes;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMes() {
        return mes;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }
}
